package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mms_userlist")
@ApiModel(value = "Userlist对象", description = "")
public class Userlist extends Model<Userlist> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "民兵编号")
    @TableId("id")
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "用户名(电话号码)")
    @TableField("username")
    private String username;

    private String password;

    @ApiModelProperty(value = "师")
    private Integer division;

    @ApiModelProperty(value = "团")
    private Integer regiment;

    @ApiModelProperty(value = "营")
    private Integer battalion;

    @ApiModelProperty(value = "连")
    private Integer company;

    @ApiModelProperty(value = "分队")
    private Integer unit;

    @ApiModelProperty(value = "用户身份")
    @TableField("userType")
    private Integer userType;

    @ApiModelProperty(value = "用户等级")
    private String level;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
